<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算机二级(MS Office)考试网</title>
    <link rel="stylesheet" href="./basics.css">
    <link rel="stylesheet" href="./content.css">
</head>
<body>
    <!-- 导航栏 start -->
    <nav class="navbar">
        <div class="logo">
          <img src="./icon/logo.png" alt="计算机二级MS Office考试站点">
        </div>
        <ul class="nav-links">
          <li><a href="#">首页</a></li>
          <li class="dropdown">
            <a href="./nav_content/nav_content01.html">考试题库</a>
            <ul class="dropdown-menu">
              <li><a href="#"></a></li>
            </ul>
          </li>
          <li><a href="./nav_content/nav_content02.html">模拟考试</a></li>
          <li><a href="./nav_content/nav_content03.html">学习资料</a></li>
          <li><a href="./nav_content/nav_content04.html">社区讨论</a></li>
          <li><a href="./nav_content/nav_content05.html">个人中心</a></li>
        </ul>
        <!-- 搜索功能 -->
        <div class="search-box">
          <input type="text" id="searchInput" placeholder="搜索题目或资料">
          <button onclick="performSearch()"><i class="fas fa-search"></i>进入</button>
          <script>
            function performSearch() {
              const input = document.getElementById('searchInput');
              const keyword = encodeURIComponent(input.value.trim());
              window.location.href = `results.html?q=${keyword}`;
            }
            
            // 支持回车键搜索
            document.getElementById('searchInput').addEventListener('keypress', (e) => {
              if (e.key === 'Enter') performSearch();
            });
          </script>
        </div>

        <div class="auth">
          <a href="./logs.html" class="login-btn">登录/注册</a>
        </div>
      </nav>
    <!-- 导航栏 end -->

    <!-- 轮播图 start -->
    <div class="carousel">
      <div class="carousel-inner">
        <!-- 考试倒计时 -->
        <div class="carousel-item active">
          <img src="./images/banner1.png" alt="考试倒计时">
          <div class="carousel-caption">
            <h2>计算机二级考试倒计时XX天！</h2>
            <p>每日精练10道题，通过率提升80%</p>
            <button>开启每日特训</button>
          </div>
        </div>
      
        <!-- 核心功能 -->
        <div class="carousel-item">
          <img src="./images/banner2.png" alt="核心功能">
          <div class="carousel-caption">
            <h2>智能题库+专家解析</h2>
            <p>3000+真题配备视频讲解，错题自动归档</p>
            <button>智能刷题模式</button>
          </div>
        </div>
      
        <!-- 热门活动 -->
        <div class="carousel-item">
          <img src="./images/banner3.png" alt="热门活动">
          <div class="carousel-caption">
            <h2>冲刺集训限时开放！</h2>
            <p>前100名报名享5折优惠</p>
            <button>抢占名额</button>
          </div>
        </div>
      
        <!-- 新增：模拟考试 -->
        <div class="carousel-item">
          <img src="./images/banner4.png" alt="模拟考试">
          <div class="carousel-caption">
            <h2>全真模拟考试系统</h2>
            <p>智能评分+用时分析，还原真实考场环境</p>
            <button>立即模考</button>
          </div>
        </div>
      
        <!-- 新增：学习资料 -->
        <div class="carousel-item">
          <img src="./images/banner5.png" alt="学习资料">
          <div class="carousel-caption">
            <h2>备考资料包免费领</h2>
            <p>含考试大纲/快捷键手册/历年真题集</p>
            <button>下载资料</button>
          </div>
        </div>
      
        <!-- 新增：成绩查询 -->
        <div class="carousel-item">
          <img src="./images/banner6.png" alt="成绩查询">
          <div class="carousel-caption">
            <h2>考后快速查分通道</h2>
            <p>绑定准考证号，第一时间推送成绩</p>
            <button>订阅提醒</button>
          </div>
        </div>
      
        <!-- 新增：学习社区 -->
        <div class="carousel-item">
          <img src="./images/banner7.png" alt="学习社区">
          <div class="carousel-caption">
            <h2>万人备考交流社区</h2>
            <p>组队学习｜经验分享｜在线答疑</p>
            <button>加入讨论</button>
          </div>
        </div>
      </div>
        <button class="carousel-control-prev" onclick="prevSlide()">&#10094;</button>
        <button class="carousel-control-next" onclick="nextSlide()">&#10095;</button>
        <div class="carousel-indicators">
          <span class="indicator active" onclick="goToSlide(0)"></span>
          <span class="indicator" onclick="goToSlide(1)"></span>
          <span class="indicator" onclick="goToSlide(2)"></span>
          <span class="indicator" onclick="goToSlide(3)"></span>
        </div>
      </div>
    <!-- 轮播图 end -->

    <!-- 快捷入口 start -->
    <div class="quick-access">
        <div class="access-card">
          <i class="fas fa-book-open"></i>
          <span class="exercise">在线练习</span>
          <p>2025选择题刷题，精准解析</p>
        </div>
        <script>
          // 获取按钮元素
var downloadBtn = document.querySelector('.exercise');

// 为按钮添加点击事件
downloadBtn.addEventListener('click', function() {
// 指定要跳转的URL
var targetUrl = './fast/fast01_exercise.html'; // 替换为你想要跳转的页面URL

// 使用 window.location.href 进行页面跳转
window.location.href = targetUrl;
});
</script>
        <div class="access-card">
          <i class="fas fa-clock"></i>
          <span class="content02">模拟考试</span>
          <p>全真环境，限时挑战</p>
        </div>
        <script>
          // 获取按钮元素
var downloadBtn = document.querySelector('.content02');

// 为按钮添加点击事件
downloadBtn.addEventListener('click', function() {
// 指定要跳转的URL
var targetUrl = './nav_content/nav_content02.html'; // 替换为你想要跳转的页面URL

// 使用 window.location.href 进行页面跳转
window.location.href = targetUrl;
});
</script>
        <div class="access-card">
          <i class="fas fa-file-alt"></i>
          <span class="mistakes">错题本</span>
          <p>巩固弱点，高效复习</p>
        </div>
        <!-- 有趣的计算机，Way -->
        <div class="access-card">
          <i class="fas fa-file-alt"></i>
          <span onclick="fnMistakesWay()" class="mistakesWay">休息一下</span>
          <p>有趣的计算机，Way -- Go</p>
        </div>
        <script>
          function fnMistakesWay(){
            window.location.href = "./nav_content/computer/webComputer.html";
          }
        </script>
        <script>
          // 获取按钮元素
var downloadBtn = document.querySelector('.mistakes');

// 为按钮添加点击事件
downloadBtn.addEventListener('click', function() {
// 指定要跳转的URL
var targetUrl = './fast/fast01_mistakes.html'; // 替换为你想要跳转的页面URL

// 使用 window.location.href 进行页面跳转
window.location.href = targetUrl;
});
</script>
        <div class="access-card">
          <i class="fas fa-download"></i>
          <span class="content03">下载中心</span>
          <p>真题/教材一键获取</p>
        </div>
        <script>
          // 获取按钮元素
var downloadBtn = document.querySelector('.content03');

// 为按钮添加点击事件
downloadBtn.addEventListener('click', function() {
// 指定要跳转的URL
var targetUrl = './nav_content/nav_content03.html'; // 替换为你想要跳转的页面URL

// 使用 window.location.href 进行页面跳转
window.location.href = targetUrl;
});
</script>
      </div>
    <!-- 快捷入口 end -->

    <!-- 热门资料推荐 start -->
    <div class="materials-section">
        <h2>🔥 热门资料推荐</h2>
        <div class="materials-grid">
          <!-- 资料卡片1 -->
          <div class="material-card">
            <div class="tag-group">
              <span class="tag subject">MS Office</span>
              <span class="tag type">PDF</span>
            </div>
            <div class="video-thumbnail">
                <img src="./images/ms封面pdf.png" alt="ms Office封面">
                <i class="fas fa-file-pdf"></i>
              </div>
            <h3>2025真题解析（含答案）</h3>
            <p>近三年考试真题合集，附带详细解析</p>
            <div class="meta">
              <span>📥 1.2万次下载</span>
              <span>📄 15.6MB</span>
            </div>
            <button class="download-btn">立即下载</button>
            <script>
                      // 获取按钮元素
        var downloadBtn = document.querySelector('.download-btn');
 
 // 为按钮添加点击事件
 downloadBtn.addEventListener('click', function() {
     // 指定要跳转的URL
     var targetUrl = './data/data01.html'; // 替换为你想要跳转的页面URL

     // 使用 window.location.href 进行页面跳转
     window.location.href = targetUrl;
 });
            </script>
          </div>
      
          <!-- 资料卡片2（视频课程） -->
          <div class="material-card video">
            <div class="tag-group">
              <span class="tag subject">MS Office</span>
              <span class="tag type">视频</span>
            </div>
            <div class="video-thumbnail">
              <img src="./images/ms封面.png" alt="ms Office封面">
              <i class="fas fa-play"></i>
            </div>
            <h3>MS Office编程实战30讲</h3>
            <p>从零掌握二级MS Office考点</p>
            <div class="meta">
              <span>👥 3568人学习</span>
              <span>⏱ 8小时</span>
            </div>
            <button class="study-btn">开始学习</button>
            <script>
              // 获取按钮元素
var downloadBtn = document.querySelector('.study-btn');

// 为按钮添加点击事件
downloadBtn.addEventListener('click', function() {
// 指定要跳转的URL
var targetUrl = './data/video02.html'; // 替换为你想要跳转的页面URL

// 使用 window.location.href 进行页面跳转
window.location.href = targetUrl;
});
    </script>
          </div>
          <!-- 更多卡片... -->
        </div>
      </div>
    <!-- 热门资料推荐 end -->

    <!-- 页脚 start -->
    <footer class="footer">
        <div class="footer-content">
          <!-- 网站简介 -->
          <div class="footer-section about">
            <img src="./icon/logo.png" alt="Logo" class="footer-logo">
            <p>专注计算机二级(MS Office)考试备考，提供海量题库、模拟考试、学习资料和社区交流，助力考生高效通关！</p>
          </div>
      
          <!-- 快速链接 -->
          <div class="footer-section links">
            <h4>快速链接</h4>
            <ul>
              <li><a href="#">首页</a></li>
              <li><a href="./nav_content/nav_content01.html">考试题库</a></li>
              <li><a href="./nav_content/nav_content02.html">模拟考试</a></li>
              <li><a href="./nav_content/nav_content03.html">学习资料</a></li>
              <li><a href="./nav_content/nav_content04.html">社区讨论</a></li>
            </ul>
          </div>
      
          <!-- 联系方式 -->
          <div class="footer-section contact">
            <h4>联系我们</h4>
            <ul>
              <li>地址：云南省德宏自治州陇川大街9号</li>
              <li>电话：1478-733-0317</li>
              <li>邮箱：bowengmian@yqing.com.cn</li>
            </ul>
          </div>
      
          <!-- 社交媒体 -->
          <div class="footer-section social">
            <h4>关注我们</h4>
            <div class="social-icons">
              <a href="#"><i class="fab fa-weixin"></i></a>
              <a href="#"><i class="fab fa-weibo"></i></a>
              <a href="#"><i class="fab fa-qq"></i></a>
            </div>
            <img src="./images/企业微信二维码.jpg" alt="企业微信二维码" class="qr-code">
          </div>
        </div>
      
        <!-- 法律信息 -->
        <div class="footer-bottom">
          <div class="legal-links">
            <a href="./ertra/policy.html">隐私政策</a> | 
            <a href="./ertra/agreement.html">用户协议</a> | 
            <a href="#">版权声明</a>
          </div>
          <p><a href="https://beian.miit.gov.cn/#/Integrated/index">滇ICP备2025050765</a> © 2025-2025 计算机二级(MS Office)考试网</p>
        </div>
      </footer>
    <!-- 页脚 end -->

    
</body>
</html>
<script src="./content.js"></script>